{% extends 'mama.html' %}
{% block content %}


    <form class="form-horizontal" method="post" novalidate>
        {% csrf_token %}
        {% for i in form %}
            <div class="form-group" >
                <label class="col-sm-2 control-label">{{ i.label }}</label>
                <div class="col-sm-10">
                    {{ i }}
                    <span style="color: red;">{{ i.errors.0 }}</span>
                </div>
            </div>
        {% endfor %}

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="text-info" >确定修改</button>
                <button type="submit" class="text-warning" href="/user/list/">取消</button>
            </div>
        </div>


    </form>

{% endblock %}